package com.nashuju.web.entity.article;

import java.util.Date;

import org.durcframework.core.expression.annotation.LikeDoubleField;
import org.durcframework.core.expression.annotation.ValueField;
import org.durcframework.core.support.SearchEasyUI;
import org.durcframework.core.util.DateUtil;

public class ArticleCommentSch extends SearchEasyUI {

    private Integer idSch;
    private String subjectSch;
    private String createdIpSch;
    private String contentSch;
    private Integer isshowSch;
    private Integer posSch;
    private Integer scIdSch;
    private Integer abIdSch;
    private Integer parentIdSch;
    private Date createdSch;
    private Date editedSch;
    private Date createdStartSch;
    private Date createdEndSch;

    @ValueField(column = "created", equal = ">=")
    public Date getCreatedStartSch() {
        return createdStartSch;
    }

    public void setCreatedStartSch(Date createdStartSch) {
        this.createdStartSch = createdStartSch;
    }

    @ValueField(column = "created", equal = "<")
    public Date getCreatedEndSch() {
        if (createdEndSch != null) {
            return DateUtil.getDateAfterDay(createdEndSch, 1);
        }
        return createdEndSch;
    }

    public void setCreatedEndSch(Date createdEndSch) {
        this.createdEndSch = createdEndSch;
    }

    public void setIdSch(Integer idSch) {
        this.idSch = idSch;
    }

    @ValueField(column = "id")
    public Integer getIdSch() {
        return this.idSch;
    }

    public void setSubjectSch(String subjectSch) {
        this.subjectSch = subjectSch;
    }

    @LikeDoubleField(column = "subject")
    public String getSubjectSch() {
        return this.subjectSch;
    }

    public void setCreatedIpSch(String createdIpSch) {
        this.createdIpSch = createdIpSch;
    }

    @ValueField(column = "created_ip")
    public String getCreatedIpSch() {
        return this.createdIpSch;
    }

    public void setContentSch(String contentSch) {
        this.contentSch = contentSch;
    }

    @LikeDoubleField(column = "content")
    public String getContentSch() {
        return this.contentSch;
    }

    public void setIsshowSch(Integer isshowSch) {
        this.isshowSch = isshowSch;
    }

    @ValueField(column = "isshow")
    public Integer getIsshowSch() {
        return this.isshowSch;
    }

    public void setPosSch(Integer posSch) {
        this.posSch = posSch;
    }

    @ValueField(column = "pos")
    public Integer getPosSch() {
        return this.posSch;
    }

    public void setScIdSch(Integer scIdSch) {
        this.scIdSch = scIdSch;
    }

    @ValueField(column = "sc_id")
    public Integer getScIdSch() {
        return this.scIdSch;
    }

    public void setAbIdSch(Integer abIdSch) {
        this.abIdSch = abIdSch;
    }

    @ValueField(column = "ab_id")
    public Integer getAbIdSch() {
        return this.abIdSch;
    }

    public void setParentIdSch(Integer parentIdSch) {
        this.parentIdSch = parentIdSch;
    }

    @ValueField(column = "parent_id")
    public Integer getParentIdSch() {
        return this.parentIdSch;
    }

    public void setCreatedSch(Date createdSch) {
        this.createdSch = createdSch;
    }

    @ValueField(column = "created")
    public Date getCreatedSch() {
        return this.createdSch;
    }

    public void setEditedSch(Date editedSch) {
        this.editedSch = editedSch;
    }

    @ValueField(column = "edited")
    public Date getEditedSch() {
        return this.editedSch;
    }


}
